/*
 * LoginData
 * 
 * May 29, 2006
 * 
 * Copyright (c) AmSoft Systems, 2006
 */

package net.amsoft.iservice.icontact.hibernate.dataObject;

import java.util.ArrayList;
import org.apache.log4j.Logger;
import net.amsoft.iservice.isso.client.SAMLDataObject;

/**
 * @author rahul
 * 
 */
public class LoginData {

    private static final Logger oLog = Logger.getLogger(LoginData.class);

    private String sGlobalInumber = "";
    private SAMLDataObject oSAMLData;
    private String sRelayState = "";
    private String sProviderIDHash = "";
    private boolean loginStatus;
    private String sLoggedInSynonym = "";
    private int iCurReqIndex;
    private ArrayList aAllSynonyms = new ArrayList();
    private String sIDPMetaDataEP = "";

    public LoginData() {
        loginStatus = false;
        iCurReqIndex = 0;
        aAllSynonyms = new ArrayList();
    }

    public boolean isLoginStatus() {
        return loginStatus;
    }
    public void setLoginStatus(boolean loginStatus) {
        this.loginStatus = loginStatus;
    }

    public String getGlobalInumber() {
        return sGlobalInumber;
    }
    public void setGlobalInumber(String globalInumber) {
        sGlobalInumber = globalInumber;
    }

    public String getProviderIDHash() {
        return sProviderIDHash;
    }
    public void setProviderIDHash(String providerIDHash) {
        sProviderIDHash = providerIDHash;
    }

    public String getRelayState() {
        return sRelayState;
    }
    public void setRelayState(String relayState) {
        sRelayState = relayState;
    }

    public String getLoggedInSynonym() {
        return sLoggedInSynonym;
    }
    public void setLoggedInSynonym(String synonym) {
        sLoggedInSynonym = synonym;
    }

    public SAMLDataObject getSAMLData() {
        return oSAMLData;
    }
    public void setSAMLData(SAMLDataObject samlDataObject) {
        oSAMLData = samlDataObject;
    }

    public int getCurReqIndex() {
        return iCurReqIndex;
    }
    public void setCurReqIndex(int curReqIndex) {
        iCurReqIndex = curReqIndex;
    }

    public ArrayList getAllSynonyms() {
        return aAllSynonyms;
    }
    public void setAllSynonyms(ArrayList allSynonyms) {
        aAllSynonyms = allSynonyms;
    }

    public String getIDPMetaDataEP() {
        return sIDPMetaDataEP;
    }
    public void setIDPMetaDataEP(String metaDataEP) {
        sIDPMetaDataEP = metaDataEP;
    }

    public void debug() {
        String debugStr = this.getClass().getName() + ":GIN=" + sGlobalInumber
                + ",";
        for (int i = 0; i < aAllSynonyms.size(); i++) {
            debugStr += "SYN[" + i + "]=" + aAllSynonyms.get(i);
        }
        oLog.debug(debugStr);
    }

}
